package cn.itsource.wechart.mapper;

import cn.itsource.basic.basicmapper.BasicMapper;
import cn.itsource.wechart.pojo.domain.WxUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface WxUserMapper extends BasicMapper<WxUser> {


    @Select("select * from t_wxuser where openid = #{openid}")
    WxUser findByOpenid(String openid);

    void updateUserIdByOenid(@Param("userId") Long userId, @Param("openid") String openid);
}
